package com.service_Test;


import com.dao_Test.Dao;
import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;


public class Service1Impl implements Service1 {
    @Test
    public  void testService() {
        ApplicationContext applicationContext = new ClassPathXmlApplicationContext("Bean1.xml");
            Dao dao = (Dao) applicationContext.getBean("test");
            System.out.println(dao);
            dao.test();


    }
}
